'use strict';

/* Controllers */



function MyCtrl1($scope, $http, $resource) {

   $http({method: 'GET', url: './json/feeds.json'}).
    success(function(data, status, headers, config) {
        $scope.feeds = data;

    });

    $scope.onSelectFeed = function(feed) {
        $scope.selectedFeed = feed.name;
        $http({method: 'GET', url: './json/feed.json'}).
               success(function(data, status, headers, config) {
                   $scope.feed = data;
                });
    }

    $scope.editRow = function(c) {
        c.show = !c.show;
    }
};

MyCtrl1.$inject = ['$scope','$http','$resource'];





function MyCtrl2() {
}


MyCtrl2.$inject = [];
